home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / bailer.swf / scripts / DefineSprite_435 / frame_1 / DoAction.as
Text File  |  2013-04-24  |  341b  |  17 lines

  1. function xFadeOut()
  2. {
  3.    this.onEnterFrame = function()
  4.    {
  5.       var _loc2_ = Math.max(bgm_sound.getVolume() - 2,0);
  6.       bgm_sound.setVolume(_loc2_);
  7.       if(_loc2_ == 0)
  8.       {
  9.          delete this.onEnterFrame;
  10.          this.gotoAndStop(2);
  11.       }
  12.    };
  13. }
  14. _visible = false;
  15. bgm_sound = new Sound(this);
  16. this.stop();
  17.